package com.zhang.backend.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("events") // 替换 @Entity 和 @Table
public class Event {

    @TableId(value = "event_id", type = IdType.AUTO)
    private Long eventId;

    @TableField("person_id")
    private Long personId;

    @TableField("event_type")
    private String eventType;

    @TableField("event_date")
    private LocalDate eventDate;

    @TableField("description")
    private String description;

    @TableField("is_deleted")
    private Boolean isDeleted;

}